package com.jiuyi.service;

import com.jiuyi.common.R;
import com.jiuyi.dto.AdminSetmealDto;
import com.jiuyi.entity.Setmeal;
import com.jiuyi.vo.AdminSelectSetmealVo;
import com.jiuyi.vo.AdminUpdateSetmealVo;
import com.jiuyi.vo.SetMealListVo;

/**
 * DATA: 2022/10/19
 * Author: 晨夕
 */
public interface SetmealService {
    //添加套餐
    R addSetmeal(AdminSetmealDto adminSetmealDto);
    //分页查询套餐
    R<AdminSelectSetmealVo> selectSetmealList(int page, int pageSize, String name);
    //删除套餐
    R deleteSetmeal(Long[] ids);
    //停售套餐
    R stopSetmeal(Long[] ids);
    //起售套餐
    R startSetmeal(Long[] ids);
    //根据id查询套餐
    R<AdminUpdateSetmealVo> selectById(Long id);
    //修改套餐
    R updateSetmeal(AdminSetmealDto adminSetmealDto);
    //根据category_id查询套餐集合
    R<SetMealListVo> selectListById(Long categoryId);
    //根据id查询
    R<Setmeal> selectDishById(Long id);
}
